package cn.xdf.learn.io;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class io {


    public static void main(String[] args) {
        // 新建一个 BufferedInputStream 对象
        BufferedInputStream bufferedInputStream = null;
        try {
            bufferedInputStream = new BufferedInputStream(new FileInputStream("input.txt"));
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        }
        // 读取文件的内容并复制到 String 对象中
//        String result = new String(bufferedInputStream.readAllBytes());
//        System.out.println(result);

    }




}
